package com.yun.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.blog.bean.Star;
import com.yun.blog.bean.dto.StarBlogDto;
import org.apache.ibatis.annotations.Param;

public interface StarService extends IService<Star> {
    boolean isStar(Integer userId,Integer blogId);

    <P extends IPage<StarBlogDto>> P getStarBlog(
            P page,
            @Param("userId") Integer userId
    );
}
